//
//  AppDelegate.m
//  OSChina
//
//  Created by 王洪运 on 15/12/15.
//  Copyright © 2015年 王洪运. All rights reserved.
//

#import "AppDelegate.h"

#import "WHYTabBarViewController.h"


@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    [self setupApperance];

    [self loadViewController];
    
    return YES;
}

#pragma mark - 加载控制器
-(void)loadViewController {
    
    self.window = [[UIWindow alloc] init];
    
    self.window.backgroundColor = [UIColor whiteColor];
    self.window.rootViewController = [[WHYTabBarViewController alloc] init];
    
    [self.window makeKeyAndVisible];
    
}

-(void) setupApperance {
    
    [UINavigationBar appearance].barTintColor = [WHYCommon setNavigationBarApperanceBackgroundColor];
    
    [UITabBar appearance].tintColor = [WHYCommon setTabBarItemApperanceColor];
    
}



@end
